package com.clkj.cldisabledmanclient.http;

import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

/**
 * Author : WangJian
 * Date  : 2018/2/9.
 */

public class HttpRequest {


//    public static void uploadPic(File file,
//                                 AsyncHttpResponseHandler responseHandler) {
//        RequestParams params = new RequestParams();
//
//
//        try {
//            params.put("uploadfile", file);
//            TwitterRestClient.postByAbsoluteUrl(Config.URL_BASE_IN_USE + "/Center/get_file", params, responseHandler);
//        } catch (FileNotFoundException e) {
//            e.printStackTrace();
//        }
//
//    }

    public static void getAppVersion(AsyncHttpResponseHandler responseHandler, String versionType) {

        RequestParams params = new RequestParams();
        params.put("versionType", versionType);
        TwitterRestClient.postByAbsoluteUrl(HttpConfig.URL_OF_INTERFACE_BASE + "/CDPFIN/getLatestAPP",
                params, responseHandler);
    }


}
